﻿<%@ Page language="c#" Codebehind="bloggerweb.aspx.cs" validateRequest=false AutoEventWireup="true" Inherits="client.bloggerweb" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>forumMain</title>
		<meta content="False" name="vs_snapToGrid">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<LINK href="../springofwater.css" type="text/css" rel="stylesheet">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		
			<div align="center">
				<table id="table811" width="80%" border="0">
					<tr>
						<td align="center">
							<% Server.Execute("header.aspx");%>
						</td>
					</tr>
				</table>
			</div>
			
			<div align="center">
			
				<table style="WIDTH: 779px; HEIGHT: 8px" cellSpacing="0" cellPadding="0" align="center"
					border="0">
					
						<tr>
							<td>
								<UL style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 98.87%; PADDING-TOP: 0px; FONT-FAMILY: SimSun; LIST-STYLE-TYPE: none; HEIGHT: 25px; BACKGROUND-COLOR: white">
									<LI style="DISPLAY: inline">
										<A class="menu" href="index.aspx">泉源首页</A>
									<LI style="DISPLAY: inline">
										<A class="menu" href="forumsStart.aspx">泉源论坛</A>
									<LI style="DISPLAY: inline">
										<A class="selected" href="bloggermain.aspx">泉源博客</A>
									<LI style="DISPLAY: inline">
										<A class="empty" href="jianzao.aspx"></A>
									<LI style="DISPLAY: inline">
										<A class="menu" href="dengji.aspx">注册登记</A>
									<LI style="DISPLAY: inline">
										<A class="menu" href="women.aspx">关于我们</A>
									<LI style="DISPLAY: inline">
										<A class="menu" href="mailto:contact@springofwater.net">联络我们</A>
									</LI>
								</UL>
							</td>
						</tr>
				</table>
			</div>
			<div align="center">
			
				<TABLE style="WIDTH: 770px" borderColor="#5d9dd1" cellSpacing="0" cellPadding="0" border="1">
					<form id="Form1" method="post" runat="server">
					<tr bgColor="#5d9dd1">
						<td>
							<TABLE id="Table61" style="WIDTH: 550px; HEIGHT: 19px" cellSpacing="0" cellPadding="0"
								width="550" border="0">
								<TR>
									<TD style="HEIGHT: 1px" width="33%">
										<% if (pageNumber > 1) { %>
										<A style="TEXT-DECORATION: none" href="bloggerweb.aspx?UserID=<% Response.Write(userID); %>&amp;Page=<% Response.Write(pageNumber-1); %>" >
											<font color="white" size="2">上一页</font> </A>
										<% } %>
									</TD>
									<TD style="HEIGHT: 1px" align="right" width="33%">
										<% if (pageNumber < totalPages) { %>
										<A style="TEXT-DECORATION: none" href="bloggerweb.aspx?UserID=<% Response.Write(userID); %>&amp;Page=<% Response.Write(pageNumber + 1); %>" >
											<font color="white" size="2">下一页</font> </A>
										<% } else { %>
										<A style="TEXT-DECORATION: none" href="bloggerweb.aspx?UserID=<% Response.Write(userID); %>" >
											<font color="white" size="2">返回主页</font> </A>
										<% } %>
									</TD>
								</TR>
							</TABLE>
						</td>
						
						
						<td align="right">
						  <asp:linkbutton id="LinkButton3" runat="server" Font-Underline="True" ForeColor="White" Font-Size="X-Small" OnClick="LinkButton3_Click1">发表新文章</asp:linkbutton>&nbsp;
						  <asp:linkbutton id="LinkButton1" runat="server" Font-Underline="True" ForeColor="White" Font-Size="X-Small" OnClick="LinkButton1_Click1">编辑文章</asp:linkbutton>&nbsp;
						  <asp:linkbutton id="LinkButton2" runat="server" Font-Underline="True" ForeColor="White" Font-Size="X-Small" OnClick="LinkButton2_Click1">编缉评论</asp:linkbutton>
						   
						  </td>
					    
					</tr>
					
					<tr>
						<td style="WIDTH: 549px" vAlign="top" align="left"><FONT color="#ffffff"></FONT>
							<P><FONT size="2"></FONT></P>
							<P><FONT size="2"><FONT size="2">
										<TABLE id="Table2" cellSpacing="0" cellPadding="0" border="0">
											<TR>
												<TD style="WIDTH: 556px" vAlign="top" align="left"><ASP:REPEATER id="MyRepeater" runat="server">
														<ItemTemplate>
															<TABLE id="Table4" style="WIDTH: 550px; " cellSpacing="1" cellPadding="1" border="0" bordercolor="#3366cc">
																<TR>
																	<TD style="WIDTH: 500px; HEIGHT: 8px" align="left" bgColor="lavender" colSpan="1" rowSpan="1"><FONT size="2">&gt;&gt;<FONT color="#ffffff">
																			</FONT><FONT color="#000066"><A href='bloggercontent.aspx?postID=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "PostID")) %>&UserID=<% Response.Write(userID); %>
																	' style=text-decoration:none>
																					<%# DataBinder.Eval(Container.DataItem, "Subject") %>
																				</A></FONT></FONT>
																	</TD>
																</TR>
																<TR>
																	<TD style="HEIGHT: 8px" vAlign="top" align="left">
																		<table>
																			<tr>
																				<td>
																					<P><FONT size="2"><br>
																							<%if (postID == null || postID == "") {%>
																							摘要：
																							<%# 																				  
																				    Convert.ToString(DataBinder.Eval(Container.DataItem, "Summary")).Trim() != "" ?
																				    DataBinder.Eval(Container.DataItem, "Summary") :
																				    DataBinder.Eval(Container.DataItem, "Subject")  																				
																				  %>
																							<br>
																							<A href=
																	                      'bloggercontent.aspx?postID=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "PostID")) %>&UserID=<% Response.Write(userID); %>
																	' style=text-decoration:none><font color="#0033ff">查看全文</font> </A>
																							<% } else { %>
																							<%#System.Convert.ToString(((System.Data.DataRowView)Container.DataItem)["Body"]) %>
																							<% } %>
																				</td>
																			</tr>
																		</table>
																	</TD>
																</TR>
																<TR>
																	<TD style="HEIGHT: 10px;" vAlign="top" align="right" bgColor="white"><font size="2">
																			<%# DataBinder.Eval(Container.DataItem, "CreateDate") %>
																		</font><A href=
																	                      'bloggerweb.aspx?postID=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "PostID")) %>&UserID=<% Response.Write(userID); %>
																	' style=text-decoration:none><FONT color="#000066" size="2">评论（
																				<%# DataBinder.Eval(Container.DataItem, "ReplyNumbers") %>
																				）</FONT></A> <FONT color="#000066" size="2">阅读次数:<%# DataBinder.Eval(Container.DataItem, "NumberOfVisits") %></FONT></TD>
																</TR>
															</TABLE>
														</ItemTemplate>
													</ASP:REPEATER></TD>
											</TR>
											<TR>
												<TD style="WIDTH: 556px; HEIGHT: 5px" vAlign="top" align="left">&nbsp;&nbsp;<!--StartFragment --></TD>
											</TR>
											<% if (postID != null && postID != "") { %>
											<TR>
												<TD style="WIDTH: 556px; HEIGHT: 5px" vAlign="top" align="center" bgColor="#5d9dd1"><STRONG>评论</STRONG></TD>
											</TR>
											<TR>
												<TD style="WIDTH: 550px; HEIGHT: 7px;" vAlign="top" align="left" bgColor="white"><FONT color="white"><asp:datalist id="DataList4" runat="server" Font-Size="X-Small" Width="551px" Height="136px">
															<ItemTemplate>
																<table style="WIDTH: 524px" cellpadding="1" cellspacing="1">
																	<tr>
																		<td>
																			<FONT color="#000066" size="2" style="TEXT-DECORATION: underline">
																				<%# DataBinder.Eval(Container.DataItem, "NickName") %>
																				<%# DataBinder.Eval(Container.DataItem, "CreateDate") %>
																			</FONT>
																		</td>
																	</tr>
																	<tr>
																		<td>
																			<FONT color="#000066" size="2">
																				<%# System.Convert.ToString(((System.Data.DataRowView)Container.DataItem)["Body"]).Replace("\n","<br>") %>
																			</FONT>
																		</td>
																	</tr>
																</table>
															</ItemTemplate>
															<SeparatorTemplate>
															</SeparatorTemplate>
														</asp:datalist></FONT></TD>
											</TR>
											<%}%>
											<TR>
												<TD style="WIDTH: 556px" vAlign="top" align="left"><FONT color="#000066"></FONT></TD>
											</TR>
										</TABLE>
									</FONT></FONT>
							</P>
						</td>
						<TD vAlign="top" align="left">
							<TABLE id="Table1" style="WIDTH: 225px; HEIGHT: 299px" cellSpacing="0" cellPadding="0"
								width="225" border="0">
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 14px" vAlign="middle" align="center" bgColor="#cccccc">
										<P><FONT color="#006666" size="2"></FONT>&nbsp;</P>
									</TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 10px" vAlign="middle" align="left" colSpan="1" rowSpan="1"><FONT size="2"></FONT></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 10px" vAlign="middle" align="left">
										<P><FONT color="#000000" size="2"><asp:datalist id="DataList5" runat="server">
													<ItemStyle Font-Size="X-Small"></ItemStyle>
													<ItemTemplate>
														&nbsp;&nbsp;<%#((System.Data.DataRowView)Container.DataItem)["Description"] %>
													</ItemTemplate>
												</asp:datalist></FONT></P>
									</TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 16px" vAlign="middle" align="right" colSpan="1" rowSpan="1"><FONT size="2">
											<% if (Utilities.Helper.IdentifyUser(Request)) { %>
											<A href="dengixiuge.aspx"><FONT color="#0000ff">建立或修改你的自我介绍</FONT></A>
											<% } %>
										</FONT>
									</TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 10px" vAlign="middle" align="center" bgColor="#cccccc"><FONT color="#006666" size="2">
											分类阅读</FONT></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 14px" vAlign="middle" align="center">
										<table>
											<tr>
												<td>
													<A href="bloggerweb.aspx?UserID=<% Response.Write(userID); %>" style="TEXT-DECORATION:none">
														<FONT color="#000066" size="2">全部内容</FONT> </A>
												</td>
												<td>
													<A href="bloggerweb.aspx?CategoryID=33&amp;UserID=<% Response.Write(userID); %>" style="TEXT-DECORATION:none">
														<FONT color="#000066" size="2">信的故事</FONT></A>
												</td>
												<td>
													<A href="bloggerweb.aspx?CategoryID=34&amp;UserID=<% Response.Write(userID); %>" style="TEXT-DECORATION:none">
														<FONT color="#000066" size="2">圣经真道</FONT></A>
												</td>
											</tr>
											<tr>
												<td>
													<A href="bloggerweb.aspx?CategoryID=35&amp;UserID=<% Response.Write(userID); %>" style="TEXT-DECORATION:none">
														<FONT color="#000066" size="2">文化社会</FONT></A>
												</td>
												<td>
													<A href="bloggerweb.aspx?CategoryID=36&amp;UserID=<% Response.Write(userID); %>" style="TEXT-DECORATION:none">
														<FONT color="#000066" size="2">生活人生</FONT></A>
												</td>
												<td>
													<A href="bloggerweb.aspx?CategoryID=37&amp;UserID=<% Response.Write(userID); %>" style="TEXT-DECORATION:none">
														<FONT color="#000066" size="2">婚姻家庭</FONT></A>
												</td>
												<td>
											<tr>
												<td>
													<A href="bloggerweb.aspx?CategoryID=38&amp;UserID=<% Response.Write(userID); %>" style="TEXT-DECORATION:none">
														<FONT color="#000066" size="2">赞美诗歌</FONT></A>
												</td>
												<td>
													<A href="bloggerweb.aspx?CategoryID=44&amp;UserID=<% Response.Write(userID); %>" style="TEXT-DECORATION:none">
														<FONT color="#000066" size="2">与神同行</FONT></A>
												</td>
											</tr>
										</table>
									</TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 10px" vAlign="middle" align="center" bgColor="#cccccc"><FONT color="#006666" size="2">日历 
											2005年9月15日</FONT></TD>
								</TR>
								<TR>
								
									<TD style="HEIGHT: 148px" vAlign="top" align="left"><asp:calendar id="Calendar2" runat="server" ForeColor="#0000C0" Font-Size="X-Small" Width="225px"
											Height="138px" BorderColor="Honeydew" BackColor="WhiteSmoke">
											<TodayDayStyle BackColor="#E0E0E0"></TodayDayStyle>
											<TitleStyle BackColor="#C0C0FF"></TitleStyle>
										</asp:calendar></TD>
										 
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 7px" vAlign="middle" align="center" bgColor="#cccccc"><FONT color="#006666" size="2">最新文章</FONT></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 71px" vAlign="middle" align="left" bgColor="#ffffff"
										colSpan="1" rowSpan="1"><FONT size="2"><asp:datalist id="DataList1" runat="server" Width="219px" Height="20px">
												<ItemTemplate>
													<A href=
											              'bloggerweb.aspx?postID=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "PostID")) %>&UserID=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "UserID")) %>
																	' style=text-decoration:none><font color="#000066" size="2">+
															<%#((System.Data.DataRowView)Container.DataItem)["Subject"] %>
														</font></A>
												</ItemTemplate>
											</asp:datalist></FONT></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 3px" vAlign="middle" align="left" bgColor="#ffffff"
										colSpan="1" rowSpan="1"></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 16px" vAlign="middle" align="center" bgColor="#cccccc">&nbsp;<FONT color="#006666" size="2">文章索引</FONT></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 238px; HEIGHT: 127px" vAlign="top" align="left">
										<P> <FONT size="2">
													<table id="Table5" style="WIDTH: 224px; HEIGHT: 95px" cellSpacing="0" cellPadding="0" width="224"
														border="0">
														<TBODY>
															<TR>
																<TD style="HEIGHT: 43px"> <!--StartFragment --></FONT><FONT size="2">
													    <asp:datalist id="DataList3" runat="server" Width="222px" Height="39px">
														<ItemTemplate>
															<A href=
											              'bloggerweb.aspx?UserID=<% Response.Write(userID); %>&Year=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "Year")) %>&Month=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "Month")) %>
																	' style=text-decoration:none><font color="#000066" size="2">+
																	<%# DataBinder.Eval(Container.DataItem,"Year") %>
																	年<%# DataBinder.Eval(Container.DataItem,"Month") %>月索引 </font></A>
														</ItemTemplate>
													   </asp:datalist>
													   </FONT>
													</table>
									</TD>
								</TR>
								<TR>
									<TD vAlign="middle" align="center" bgColor="#cccccc"><FONT color="#006666" size="2">最新评论</FONT></TD>
								</TR>
								<TR>
									<TD style="HEIGHT: 151px" vAlign="top" align="left"><asp:datalist id="DataList2" runat="server" Width="220px" Height="122px">
											<ItemTemplate>
												<A href=
									   'bloggerweb.aspx?postID=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "OriginalPostID")) %>&UserID=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "UserID")) %>
																	' style=text-decoration:none><font color="#000066" size="2">+
														<%#((System.Data.DataRowView)Container.DataItem)["OriginalSubject"] %>
														<br>
														&nbsp
														<%# Utilities.Helper.FindLeadingWords(System.Convert.ToString(((System.Data.DataRowView)Container.DataItem)["body"]),20) %>
														...... </font></A>
											</ItemTemplate>
										</asp:datalist></TD>
								</TR>
								</form>
							</TABLE> 
				 
				<TR>
					<TD style="WIDTH: 549px; HEIGHT: 3px" vAlign="top" align="left">&nbsp;&nbsp;&nbsp;</TD>
					<TD style="WIDTH: 2px; HEIGHT: 3px" vAlign="top" align="left"></TD>
				</TR>
				<TR>
					<TD style="WIDTH: 549px; HEIGHT: 3px" vAlign="top" align="center" bgColor="#5d9dd1"><FONT color="#ffffff" size="2">
							<% if (postID == null || postID == "") { %>
							<TABLE id="Table6" style="WIDTH: 550px; HEIGHT: 19px" cellSpacing="0" cellPadding="0" width="550"
								border="0">
								<TR>
									<TD width="33%">
										<% if (pageNumber > 1) { %>
										<A style="TEXT-DECORATION: none" href="bloggerweb.aspx?UserID=<% Response.Write(userID); %>&amp;Page=<% Response.Write(pageNumber-1); %>" >
											<font color="white" size="2">上一页</font> </A>
										<% } %>
									</TD>
									<TD align="center" width="33%"><font color="white" size="2">第<% Response.Write(pageNumber); %>
											页 / 共<% Response.Write(totalPages); %>
											页</font>
									</TD>
									<TD align="right" width="33%">
										<% if (pageNumber < totalPages) { %>
										<A style="TEXT-DECORATION: none" href="bloggerweb.aspx?UserID=<% Response.Write(userID); %>&amp;Page=<% Response.Write(pageNumber + 1); %>" >
											<font color="white" size="2">下一页</font> </A>
										<% } %>
									</TD>
								</TR>
							</TABLE>
							<% } %>
						</FONT>
					</TD>
					<TD style="WIDTH: 2px; HEIGHT: 3px" vAlign="top" align="center" bgColor="#5d9dd1"></TD>
				</TR>
				<%if (postID != null && postID != "") {%>
				<% } %>
				  
				<P><FONT color="#006666" size="2">
				          <asp:datalist id="DataList6" runat="server" ForeColor="#006666" Font-Size="X-Small" Width="166px"
							ItemStyle-HorizontalAlign="Center" HorizontalAlign="Center">
							<ItemTemplate>
								<%#((System.Data.DataRowView)Container.DataItem)["NickName"] %>
							</ItemTemplate>
						</asp:datalist></FONT></P>
				 
				 
				</div>
			  
		<DIV  >
			<table id="table81" width="80%" border="0">
				<tr>
					<td align="center">
						<% Server.Execute("tail.aspx");%>
					</td>
				</tr>
			</table>
		</DIV>
		 
	</body>
</HTML>
